# compiler settings
CXX = g++
CXXFLAGS = -Wall -std=c++20 -fdiagnostics-color=always

# target file
TARGET = main

# source code files
Sources = main.cpp menu.cpp operation.cpp

# Object files to generate
Objects = $(Sources:.cpp=.o)

# compile executable files
$(TARGET): $(Objects)
	$(CXX) $(CXXFLAGS) -o $(TARGET) $(Objects)


# dependencies
main.o: main.cpp menu.h operation.h
menu.o: menu.cpp menu.h
operation.o: operation.cpp operation.h data.h

clean:
	rm -rf $(Objects) $(TARGET)
